// eslint-disable-next-line no-undef
module.exports = {
    publicPath: './',
    // parallel: false,
    devServer: {
        // contentBase: "./build", //项目基本访问目录
        disableHostCheck: true,
        host: "0.0.0.0", //服务器ip地址
        port: 8088, //端口
        open: true, //自动打开页面
        hot: true, //模块热替换
        hotOnly: true, //只有热更新不会刷新页面
        proxy: {
            '/index': {
                target: 'http://127.0.0.1:8181',
                changeOrigin: true,
                pathRewrite: {
                    '/index': ''
                }
            }
        }
    }
};